<script type="text/html" id="toolbar">
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-sm" data-option="{allow_nocheck:true}" lay-event="refreshTable">刷新</a>
        <a _href="{:U('export')}"
           data-option="{
               pullData:{'name':'tables'},concurrency:true,
               confirm:'备份时间的可能有点长，备份过程中请不要关闭页面。现在开始备份吗？',
           }"
           class="layui-btn layui-btn-sm layui-btn-success"
           lay-event="ajaxGet">立即备份</a>
        <a _href="{:U('optimize')}" data-option="{pullData:{name:'tables'},concurrency:true,}" class="layui-btn layui-btn-sm layui-btn-success" lay-event="ajaxGet">优化表</a>
        <a _href="{:U('repair')}" data-option="{pullData:{name:'tables'},concurrency:true,}" class="layui-btn layui-btn-sm layui-btn-success" lay-event="ajaxGet">修复表</a>
    </div>
</script>
<script type="text/html" id="rowBar">
    <a _href="{:U('optimize')}" data-option="{pullData:{name:'tables'}}" class="layui-btn layui-btn-xs layui-btn-normal" lay-event="ajaxGet">优化表</a>
    <a _href="{:U('repair')}" data-option="{pullData:{name:'tables'}}" class="layui-btn layui-btn-xs layui-btn-success" lay-event="ajaxGet">修复表</a>
</script>